﻿@model IEnumerable<SchoolProject2012.Areas.Eleve.Models.PROJET>
@using SchoolProject2012.Langue
@{
    ViewBag.Title = Resources.projetNext;
    if (Request.Browser.IsMobileDevice == true) { Layout = "~/Areas/Shared/Views/Shared/_Layout.Mobile.cshtml"; }
}

<div class="tile tile-double bg-color-purple">
<span class="tile-label-top">@Resources.projetNext</span>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.DATE_DBT_PROJ)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DATE_FIN_PROJET)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MODULE.LIB_MOD)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.DATE_DBT_PROJ)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DATE_FIN_PROJET)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MODULE.LIB_MOD)
        </td>
        <td>@Html.ActionLink(Resources.details, "DetailsProject", "Modules", new { id = item.TITRE_PROJET, langue = ViewBag.langue }, new { @class = "link" })</td>
    </tr>
}

</table>
</div>